//
//  UIImage+YCTools.h
//  Pods
//
//  Created by Apple on 2022/11/1.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIImage (YCTools)

+ (UIImage *)categoryImageWithName:(NSString *)name;

- (UIImage *)imageAddCornerWithRadius:(CGFloat)radius andSize:(CGSize)size;

+ (UIImage *)imageWithColor:(UIColor *)color;

- (UIImage *)imageWithColor:(UIColor *)color;

// 灰色图像
- (UIImage *)grayImage;

/// 获取指定组件中的图片
/// - Parameters:
///   - bundleName: 组件中定义的图片bundle
///   - frameworkName: 组件名称
///   - imageName: 图片名称
+ (UIImage *)getImageWithBundle:(NSString *)bundleName frameworkName:(nullable NSString *)frameworkName imageName:(NSString *)imageName;

@end

NS_ASSUME_NONNULL_END
